import { GET as get, POST as post } from '../axios.config.js'

const base = config.ip
const projectName = '/rcdg-logictics'

// 【获取会议列表状态数目】
export const getMeetingStatusSum = p => get(`${base}${projectName}/sa-meeting-product/getMeetingStatusSum`, p)

// 【获取会议列表】
export const getlistMeetingPages = p => get(`${base}${projectName}/sa-meeting-product/listMeetingPages`, p)

// 【获取会议室列表】
export const getMeetingRoomList = p => get(`${base}${projectName}/sa-meeting-product/getMeetingRoomList`, p)

// 【获取会议详情】
export const getMeetingDetail = p => get(`${base}${projectName}/sa-meeting-product/getMeetingDetail`, p)

// 【编辑会议/审批通过】
export const editMeeting = p => post(`${base}${projectName}/sa-meeting-product/editMeeting`, p)

// 删除会议
export const delMeeting = p => post(`${base}${projectName}/sa-meeting-product/delMeeting`, p)

// 【校验会议地点和时间】
export const checkRoomAndTimeAuthority = p =>
  post(`${base}${projectName}/sa-meeting-product/checkRoomAndTimeAuthority`, p)

// 【取消会议】
export const cancelMeeting = p => post(`${base}${projectName}/sa-meeting-product/cancelMeeting`, p)

// 【录入会议】
export const addMeeting = p => post(`${base}${projectName}/sa-meeting-product/addMeeting`, p)

// 【获取参会人员分组列表】
export const getGroupUserList = p => get(`${base}${projectName}/sa-meeting-manage/getGroupUserList`, p)

// 【添加会议室】
export const addMeetingRoom = p => post(`${base}${projectName}/sa-meeting-product/addMeetingRoom`, p)

// 【删除会议室】
export const delMeetingRoom = p => post(`${base}${projectName}/sa-meeting-product/delMeetingRoom`, p)
